<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>展开运算符</title>
  </head>
  <body>
    <script>
      let arr1 = [1, 3, 5, 7, 9]
      let arr2 = [2, 4, 6, 8, 10]
      console.log(...arr1) // 展开一个数组

      let arr3 = [...arr1, ...arr2]

      function sum(...numbers) {
        console.log(numbers)
      }

      sum(1,2)
    </script>
  </body>
</html>
